﻿function MAIN()
    QK = gg.choice({
        "技能无CD",
        "武器无限弹药",
        "额外内容",
        "退出脚本"
    }, nil, "Yasin制作")
    if QK == 1 then
        skill()
    end
    if QK == 2 then
        weapon()
        end
    if QK == 3 then
        ext()
    end
    if QK == 4 then
            Exit()
    end
    XGCK = -1
end
--------------------------------
function weapon()
    ski = gg.choice({
        "返回",
        "音喷"
    }, nil, "武器无限弹药")
    if ski == 1 then
        back()
    end
    if ski == 2 then
        yp()
    end
end
--------------------------------
function skill()
    ski = gg.choice({
        "返回",
        "小水母",
        "蝎子",
        "小天使",
        "小奶",
        "亡灵",
        "钓鱼佬",
        "赛任",
    }, nil, "机器人性能修改")
    if ski == 1 then
        back()
    end
    if ski == 2 then
        xsm()
    end
    if ski == 3 then
        xz()
    end
    if ski == 4 then
        xts()
    end
    if ski == 5 then
        xn()
    end
    if ski == 6 then
        wl()
    end
    if ski == 7 then
        dyl()
    end
    if ski == 8 then
        sr()
    end

end
--------------------------------
function ext()
    ski = gg.choice({
        "返回",
        "音喷"
    }, nil, "武器无限弹药")
    if ski == 1 then
        back()
    end
    if ski == 2 then
        yp()
    end
end
-------------------------------------
function xsm()
    gg.clearResults()
    gg.searchNumber("12;10;300:15", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.searchNumber("10", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.editAll("0", gg.TYPE_DWORD)
    gg.clearResults()
    gg.toast("修改成功")
    gg.clearResults()
end
----------------------------------------
function xz()
    gg.clearResults()
    gg.searchNumber("18;8;350:15", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.searchNumber("350", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.editAll("1100", gg.TYPE_DWORD)
    gg.clearResults()
    gg.searchNumber("18;8;1100:15", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.searchNumber("18", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.editAll("0", gg.TYPE_DWORD)
    gg.toast("修改成功")
    gg.clearResults()
end
----------------------------------------
function xts()
    gg.clearResults()
    gg.searchNumber("2;17;7::", gg.TYPE_DOUBLE)
    gg.getResults(1000)
    gg.searchNumber("17", gg.TYPE_DOUBLE)
    gg.getResults(1000)
    gg.editAll("0", gg.TYPE_DOUBLE)
    gg.toast("修改成功")
    gg.clearResults()
end
------------------------------------------
function xn()
    gg.clearResults()
    gg.searchNumber("1;8;15::15", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.searchNumber("15", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.editAll("0", gg.TYPE_DWORD)
    gg.clearResults()
    gg.toast("修改成功")
end
-----------------------------------
function wl()
     gg.clearResults()
        gg.searchNumber("18;10;350:15", gg.TYPE_DWORD)
        gg.getResults(1000)
        gg.searchNumber("350", gg.TYPE_DWORD)
        gg.getResults(1000)
        gg.editAll("1100", gg.TYPE_DWORD)
        gg.clearResults()
        gg.searchNumber("18;10;1100:15", gg.TYPE_DWORD)
        gg.getResults(1000)
        gg.searchNumber("18", gg.TYPE_DWORD)
        gg.getResults(1000)
        gg.editAll("0", gg.TYPE_DWORD)
        gg.toast("修改成功")
        gg.clearResults()
end
-----------------------------------
function dyl()
    gg.clearResults()
    gg.searchNumber("1;5;14:15", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.searchNumber("14", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.editAll("0", gg.TYPE_DWORD)
    gg.clearResults()
    gg.toast("修改成功")
end
-----------------------------------
function sr()
    gg.clearResults()
    gg.searchNumber("2;1;18:15", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.searchNumber("18", gg.TYPE_DWORD)
    gg.getResults(1000)
    gg.editAll("0", gg.TYPE_DWORD)
    gg.clearResults()
    gg.toast("修改成功")
end
-----------------------------------
function yp()
    gg.clearResults()
    gg.searchNumber("1F~2F;8D;200D::81", gg.TYPE_AUTO)
    gg.getResults(1000)
    gg.searchNumber("8", gg.TYPE_AUTO)
    gg.getResults(1000)
    gg.editAll("9999", gg.TYPE_AUTO)
    gg.clearResults()
    gg.toast("修改成功")
end
-----------------------------------
function back()
    MAIN()
end
------------------------------------
function Exit()
    print("Thank you for enjoying Yasin's hack")
    os.exit()
end
-----------------------------------
while true do
    if gg.isVisible(true) then
        XGCK = 1
        gg.setVisible(false)
    end
    if XGCK == 1 then
        MAIN()
    end
end
